const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false,
  devServer: {
    // 启用代理服务器
    proxy: {
      '/api': {
        target: 'https://apipc-xiaotuxian-front.itheima.net/',
        pathRewrite: {
          '^/api': ''
        }
        // rewrite: (path) => path.replace(/^\/api/, '')
      }
    }
  }
})
